Ext.define('SKJF.view.MASTER.v_mstbankaccount_form', {
	extend	: 'Ext.form.Panel',
	
	alias	: 'widget.v_mstbankaccount_form',
	
	//region:'east',
	//id: 'east-region-container',
	
	title		: 'Create/Update mstbankaccount',
    bodyPadding	: 5,
    autoScroll	: true,
    
    initComponent: function(){
    	/*
		 * Deklarasi variable setiap field
		 */
		 
		var BANK_ACCOUNT_field = Ext.create('Ext.form.field.Text', {
			itemId: 'BANK_ACCOUNT_field',
			name: 'BANK_ACCOUNT', /* column name of table */
			fieldLabel: 'BANK_ACCOUNT',
			allowBlank: false /* jika primary_key */,
			maxLength: 30 /* length of column name */
		});
		var ACCOUNT_NO_field = Ext.create('Ext.form.field.Text', {
			itemId: 'ACCOUNT_NO_field',
			name: 'ACCOUNT_NO', /* column name of table */
			fieldLabel: 'ACCOUNT_NO',
			allowBlank: false /* jika primary_key */,
			maxLength: 20 /* length of column name */
		});
		var ACCOUNT_NAME_field = Ext.create('Ext.form.field.Text', {
			name: 'ACCOUNT_NAME', /* column name of table */
			fieldLabel: 'ACCOUNT_NAME',
			maxLength: 30 /* length of column name */
		});
		var BANK_NAME_field = Ext.create('Ext.form.field.Text', {
			name: 'BANK_NAME', /* column name of table */
			fieldLabel: 'BANK_NAME',
			maxLength: 30 /* length of column name */
		});
		var SWIFT_CODE_field = Ext.create('Ext.form.field.Text', {
			name: 'SWIFT_CODE', /* column name of table */
			fieldLabel: 'SWIFT_CODE',
			maxLength: 30 /* length of column name */
		});		
        Ext.apply(this, {
            fieldDefaults: {
                labelAlign: 'right',
                labelWidth: 120,
                msgTarget: 'qtip',
				anchor: '100%'
            },
			defaultType: 'textfield',
            items: [BANK_ACCOUNT_field,ACCOUNT_NO_field,ACCOUNT_NAME_field,BANK_NAME_field,SWIFT_CODE_field],
			
	        buttons: [{
                iconCls: 'icon-save',
                itemId: 'save',
                text: 'Save',
                disabled: true,
                action: 'save'
            }, {
                iconCls: 'icon-add',
				itemId: 'create',
                text: 'Create',
                action: 'create'
            }, {
                iconCls: 'icon-reset',
                text: 'Cancel',
                action: 'cancel'
            }]
        });
        
        this.callParent();
    }
});